package guoanmaker.provider.business.model;

import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

import guoanmaker.provider.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Entity
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_personal_finance_project_partner")
public class PersonalFinanceProjectPartner extends IdEntity{
	
	private String name;//合伙人姓名
	private String photo;//合伙人照片
	private String education;//合伙人学历
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date educationStartTime;//合伙人学历开始时间
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date educationEndTime;//合伙人学历结束时间
	private String educationGraduateInstitutions;//合伙人毕业院校
	private String employmentTime;//从业时间
	private String topJobBeforeStartingBusiness;//创业前最高职位
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date topJobBeforeStartingBusinessStartTime;//创业前最高职位起始时间
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date topJobBeforeStartingBusinessEndTime;//创业前最高职位结束时间
	private String preVentureCompany;//创业前所属公司
	private Integer employeeOptionPool;//员工期权池(0:否  1:是)
	
	private Integer flag;//表示创始人或合伙人字段(0:创始人, 1:合伙人)
	
	@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY)
	@JoinColumn(name = "finance_project_partner_id")
	private List<PersonalFpentrepreneurialExperience> personalFpentrepreneurialExperienceList;//创始人或合伙人的创业经历
	
}
